#include "caculator.h"
#include <iostream>

using namespace std;

int main(){
    while(true)
    {
        string infix_expression;
        cin >> infix_expression;
        if (infix_expression == "end")
            break;
        caculator(infix_expression); 
    }
    return 0;
}